﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TrainingsApp.WebModel;
using TrainingsApp.Logic;
using TrainingsApp.Model;

namespace TrainingsApp.IPADApp.UserControls2.Teacher
{
    public partial class UC_Previews : AccountControl
    {
        protected int ClassCount { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                List<TS_Class_Entity> list = TS_Class_Logic.TS_Class_GetClassesByUserId(this.CurAccountPage.CurrentUser.UserID);
                rpClass.DataSource = list;
                ClassCount = list.Count;
                rpClass.DataBind();
            }
        }
    }
}